package com.easybuy.service;

import java.util.List;
import java.util.Map;

import com.easybuy.pojo.Product;
import com.easybuy.pojo.Product_category;

public interface ProductService {
	public List<Product> selectProducts();
	
	public Product selectProductsById(int id);
	
	public List<Product> selectOrderByPrice();
    
    public List<Product> selectOrderByStock();
    
    public int getCount(Map<String, Object> map);
    
    public List<Product> selectProductsByPage(Map<String, Object> map);
    public List<Product> priceASC(Map<String, Object> map);
    public List<Product> priceDESC(Map<String, Object> map);
    
    int updateStock(Product product);
    
//    charu
    public List<Product> selectProductByPage(Map<String, Object> params);
    
    public  List<Product> memberOrder(Integer userId);
	
	public int selectProductCount();
	
	public int deleteProduct(Integer id);
	
	public int updateProduct(Product product);
	
	public int addProduct(Product product);
	
	public List<Product>  selectOrder(Integer aid,Integer bid);
	
	public int orderCount();
	
	public List<Product_category> selectProductType(Integer id);
	
	public Product selectProductById(Integer id);
	
	public List<Product_category> selectProductType(Map<String, Object> params);
	
	public int selectTypeCount();
	
	public int deleteType(Integer id);
	
	public List<Product_category> selectCategoryLevel1();
	
	public Product_category selectAllType(Integer id);
	
	public int updateType(Product_category pc);
	
	public int insertNewType(Product_category pc);
	
	public List<Product_category> selectTypeOne();
	
	public List<Product_category> selectTypeTwo();
}
